<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <?php $this->load->view('header/css.php'); ?>
    <?php $this->load->view('header/js.php'); ?>
    <script type="text/javascript">
        $(function() {
            $("#datepicker").datepicker({
                dateFormat: 'yy-mm-dd',
                changeMonth: true,
                changeYear: true,
                yearRange: 'c-100:c'
            });
        });
    </script>
    <title><?=lang('signup.Signup')?></title>
</head>
<body>
    <div id="page">
        <div id="header" class="clearfix">
                <div id="headerimg">
                    <div  class="container" style="text-align: right">
                        <span class="span-2"><img src="/images/favl_logo_small.gif" style="margin-top: -5px" /></span>
                        <h1><?=lang('signup.Signup')?></h1>
                    </div>
                </div>
            <div id="navigation">
                <div class="container">
                    <ul id="nav">
                        <li class="active"><a href="/"><?=lang('welcome.Welcome')?></a> &nbsp; // &nbsp; </li>
                        <li><a href="http://www.favl.org.ar">FAVL</a></li>
                    </ul>
                </div>
            </div>
        </div><!-- /#header -->
        <div id="main">
            <div class="container">
                <div class="span-17 colborder last" id="content">
                    <?php if (isset($messages)) echo $messages; ?>

		            <?php echo form_open('leonardo/two')?>
                        <?php echo form_hidden('leonardo_user', $leonardo_user); ?>
                        <?php echo form_hidden('leonardo_pass', $leonardo_pass); ?>
                        <?php echo form_hidden('leonardo_pilot', $leonardo_pilot); ?>
		                <div class="span-16 last box">
		                    <div id="" class="span-8">
                                <p>
                                    <label for="username"><?=lang('login.CIVL_ID')?>: </label>
                                    <?php echo form_input('id',set_value('id', $person->id), 'size="5" style="display: inline"'); ?>
                                    [ <a href="http://civlrankings.fai.org/?a=306&" target="_blank">Search</a> ]
                                </p>
                                <p class="prepend-top">
                                    <label for="password"><?=lang('login.Password')?>: </label> 
                                    <?php echo form_password('password', set_value('password', $leonardo_pass)); ?>
                                </p>
                                <p>
                                    <label for="passconf"><?=lang('signup.Confirm_Password')?>: </label> 
                                    <?php echo form_password('passconf', set_value('passconf', $leonardo_pass)); ?>
                                </p>
		                        <p class="prepend-top">
		                            <label for="name"><?=lang('profile.Name')?>: </label>
		                            <?php echo form_input('name',set_value('name', $person->name)); ?>
		                        </p>
		                        <p class="prepend-top">
		                            <label for="email_primary"><?=lang('profile.EMail')?>: </label> 
		                            <?php echo form_input('email_primary',set_value('email_primary', $person->email_primary)); ?>
		                        </p>
		                    </div>
		                    <div id="" class="span-7 last">
                                <p class="prepend-top">
                                    <label for="nac_type"><?=lang('profile.NAC_ID')?>: </label> 
                                    <?php echo form_dropdown('nac_type', array(
                                        'LE' => 'Libreta Enrolamiento',
                                        'LC' => 'Libreta Civica',
                                        'PASS' => 'Pasaporte',
                                        'DNI' => 'DNI',
                                        'CI' => 'Cedula Identidad'), $person->nac_type); ?>
                                    <?php echo form_input('nac',set_value('nac', $person->nac)); ?>
                                </p>
                                <p class="prepend-top">
                                    <label for="gender" class="inlined" style="display: inline;"><?=lang('profile.Gender')?>: </label> 
                                    <?php echo form_dropdown('gender', array(
                                        'M' => lang('profile.Male'),
                                        'F' => lang('profile.Female'),
                                        'O' => lang('profile.Other')), $person->gender); 
                                ?></p>
		                        <p>
		                            <label for="email_alternate"><?=lang('profile.Alternative_Email')?>: </label> 
		                            <?php echo form_input('email_alternate',set_value('email_alternate', $person->email_alternate)); ?>
		                        </p>
		                        <p class="prepend-top">
		                            <label for="phone_work"><?=lang('profile.Phone_Work')?>: </label> 
		                            <?php echo form_input('phone_work',set_value('phone_work', $person->phone_work)); ?>
		                        </p>
		                        <p class="">
		                            <label for="phone_home"><?=lang('profile.Phone_Home')?>: </label> 
		                            <?php echo form_input('phone_home',set_value('phone_home', $person->phone_home)); ?>
		                        </p>
		                        <p class="">
		                            <label for="phone_mobile"><?=lang('profile.Phone_Mobile')?>: </label> 
		                            <?php echo form_input('phone_mobile',set_value('phone_mobile', $person->phone_mobile)); ?>
		                        </p>
		                    </div>
		                </div> <!--  end first row -->
		                <div id="" class="span-16 last box">
		                    <div id="" class="span-8">
		                        <p class="">
		                            <label for="address_line_1"><?=lang('profile.Address')?>: </label> 
		                            <?php echo form_input('address_line_1',set_value('address_line_1', $person->address_line_1)); ?>
		                            <?php echo form_input('address_line_2',set_value('address_line_2', $person->address_line_2)); ?>
		                        </p>
		                        <p class="">
		                            <label for="location"><?=lang('profile.Location')?>: </label> 
		                            <?php echo form_input('location',set_value('location', $person->location)); ?>
		                        </p>
		                    </div>
		                    <div id="" class="span-7 last">
		                        <p class="">
		                            <label for="postcode"><?=lang('profile.Postcode')?>: </label> 
		                            <?php echo form_input('postcode',set_value('postcode', $person->postcode)); ?>
		                        </p>
		                        <p>
		                            <label for="country_code"><?=lang('profile.Country')?>: </label> 
		                            <?php echo form_input('country_code',set_value('country_code', $person->country_code)); ?>
		                        </p>
		                    </div>
		                </div> <!--  end first row -->
		                <div class="span-16 last form-actions-panel">
		                    <?php echo form_submit('action',lang('leonardo.Continue_to_Step_2')); ?>
		                </div>
		            <?php echo form_close(); ?>
                </div> <!-- end content -->
                <div class="span-6 prepend-1 last" id="sidebar">
               </div> <!-- end sidebar -->
            </div> <!-- end container -->
        </div> <!-- end main -->
    </div> <!-- end page -->
</body>
</html>
